package com.tsd.base.service;

import com.tsd.base.entity.BaseInvoiceInfo;
import com.tsd.base.entity.BaseInvoiceInfoExt;
import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：BaseInvoiceInfo服务实现层接口
 *
 * @author Hillpool
 * @date 2022/11/04 18:14:03
 */
public interface BaseInvoiceInfoService {

    /**
     * 描述：根据id获取BaseInvoiceInfo
     *
     * @param id
     */
    BaseInvoiceInfo getBaseInvoiceInfoById(Long id) throws Exception;

    /**
     * 描述：根据sid获取BaseInvoiceInfo
     *
     * @param sid
     */
    BaseInvoiceInfoExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据sid列表删除BaseInvoiceInfo
     *
     * @param list
     */
    void deleteBaseInvoiceInfos(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新BaseInvoiceInfo
     *
     * @param record
     * @param opUser
     */
    void saveBaseInvoiceInfo(BaseInvoiceInfo record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询BaseInvoiceInfo
     *
     * @param params
     * @param page
     */
    List<BaseInvoiceInfoExt> findBaseInvoiceInfos(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询BaseInvoiceInfo
     *
     * @param params
     */
    List<BaseInvoiceInfoExt> findBaseInvoiceInfos(Map<String, Object> params) throws Exception;

    /**
     * 描述：根据owner_sid获取BaseInvoiceInfo
     *
     * @param owner_sid
     */
    BaseInvoiceInfoExt queryByOwnerSid(String owner_sid, int dr) throws Exception;

}